<?php $this->pageTitle = $eventName; ?>
<div class="c_body">	
	<div class="u_tabs">
		<div class="u_tabs_head">
			<a class="u_tab ajaxLink"	id="u_search_tab1" href="<?php echo Yii::app()->createUrl("event/update",array('event'=>$_GET['event'])); ?>">Информация</a>
			<div class="u_tab curr"		id="u_search_tab2">Участники</div>
			<a class="u_tab ajaxLink"	id="u_search_tab3" href="<?php echo Yii::app()->createUrl("event/settingsUrl",array('event'=>$_GET['event'])); ?>">Ссылки</a>
		</div>
	</div>	
	<div class="cat_head">
		<div class="cat_head_strip"></div>
		<?php /*?><a href="<?php echo Yii::app()->createUrl('event/InviteFriend',array('event'=>$event)); ?>" class="green_btn r_m "><i>+</i>Пригласить друзей</a><?php */?>
		<div class="cat_head_h t">
			<p class="cat_head_h_txt">
				В сообществе <span><?php echo CHtml::encode($countSubscribers); ?></span> участника
			</p>
			<a class="cat_head_h_edit" href="<?php echo Yii::app()->createUrl('event/view',array('event'=>$event));?>">
				назад к <?php echo CHtml::encode($eventName); ?>
			</a>
		</div>
	</div>
	<div class="clear"></div>

	<?php foreach ($Users as $key => $user) : ?>
	<div class="f_dialog_item">
		<div class="f_dialog_item_l">
			<div class="u_buzz_item_l">
				<a href="<?php echo $this->createUrl('profile/index',array('id' => $user->id)) ?>" class="u_friend_pic">
					<?php if($user->avatar_info){ ?>
						<?php echo $this->material_image('', $user->avatar_info->name, '50', 'photos/'. $user->id . '/' . 0); ?>
					<?php }else{ ?>
						<?php echo $this->material_image('', 'noimage.gif', '50', ''); ?>
					<?php } ?>	
				</a>
			</div>
			<div class="u_buzz_item_r">
				<div class="u_buzz_name">
					<?php // Полное имя контакта
						echo CHtml::link( 
							CHtml::encode($user->full_name),
							$this->createUrl('profile/index',array( 'id' => $user->id ))
						);
					?>
					<!-- <p class="u_buzz_date">15 минут назад</p> -->
				</div>
			</div>
		</div>
		<div class="f_dialog_item_r">
			<div class="u_buzz_link_block hidden">
				<!-- Удалить контакт -->
				<a href="<?php echo Yii::app()->createUrl('event/deleteUser', array('id'=>$user->id, 'event'=>$_GET['event'])); ?>" class="u_buzz_link_url l2 removeLink"></a>
			</div>
		</div>
		
	</div>
	<?php endforeach; ?>
</div>